<?php

namespace Aspic\Form\Decorator;

use Aspic as A;
use Aspic\Form;

class CannotRenderException extends A\Exception {
	
	public function __construct($decorator, Form\Element\AbstractElement $el) {
		parent::__construct(UString::fromArgs(
			'Decorator class "?" cannot render FormElement of class "?"', get_class($decorator), get_class($el)
		));
	}
	
}